package com.color.admin.system.entity.vo.post;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author HaiQiu
 * @date 2021/12/27
 */
public class PostSmallVo implements Serializable {

    private String id;
    private String postName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof PostSmallVo)) {
            return false;
        }
        PostSmallVo that = (PostSmallVo) o;
        return Objects.equals(getId(), that.getId()) && Objects.equals(getPostName(), that.getPostName());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getPostName());
    }
}
